-- GENERATED SPELL FOR [Vengeful Phantom] --


function spell0_10387(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(15089,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10387', 8322, 1)
end

function Sorts_10387(pUnit, Event)
local choix_sorts_10387 = math.random(0, 0)
if choix_sorts_10387 == 0 then
pUnit:RegisterEvent('spell0_10387', 1, 1)
end
end

function mob10387_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10387', math.random(1500, 3000), 1)
end

function mob10387_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10387_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10387_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10387, 1, 'mob10387_Action')
RegisterUnitEvent(10387, 2, 'mob10387_Leave')
RegisterUnitEvent(10387, 3, 'mob10387_Kill')
RegisterUnitEvent(10387, 4, 'mob10387_Die')
